		
		<div class="panelTabs">
			<div class="tabs">
				<a class="label" title="{'User profile'|t}">{'User profile'|t}</a>
			</div>
		</div>
		<div class="backgroundFrame970Top"></div>
		<div class="backgroundFrame970"><div class="content">
			<div class="panelUserAvatar">
				<img src="{$urlStatic}/{image src=$user->getAvatar() w=150 h=150}" title="{$user->getFirstName()} {$user->getLastName()}" alt="{$user->getFirstName()} {$user->getLastName()}"/>
				<h1>{$user->getFirstName()}<br/>{$user->getLastName()}</h1>
			</div>
			
			
			<div class="panelUserInfo">
				<table cellpadding="0" cellspacing="0" align="center" class="panelProfle">
					<tr><td class="label">{'Age'|t}:</td><td>{$user->getAge()}</td></tr>
					<tr><td class="label">{'NTPR'|t}:</td><td>{$user->userExtendedProfile->getNtrp()}</td></tr>
					<tr><td class="label">{'Location'|t}:</td><td>{if $user->getCity()}{$user->getCity()},{/if} {if $user->getState()}{$user->getState()},{/if} {if $user->getLocation()}{$user->getLocation()}{/if}</td></tr>
					<tr><td class="label">{'Comments'|t}:</td><td>{$user->getCommentsCount()}</td></tr>
					<tr><td class="label">{'Product opinions'|t}:</td><td>{$user->getProductCommentsCount()}</td></tr>
					<tr><td class="label">{'Connnections'|t}:</td><td>{$user->GetConnectionsCount()} {'friends'|t}</td></tr>
				</table>
			</div>
			
		
			<div class="panelProfileRank">
				<div class="tennizoomPointsTab">
					<span>{'tennizoom points'|t}</span>
					{$user->getPoints()}
					<a href="{url label=userPointsDetails idUser=$user->getId()}" title="{'details'|t}">{'details'|t}</a>
				</div>
				
				
				{*
				<div class="userRank">
					<img src="images/rankB5.png" alt="Rankname"/>
					<span class="statusName">Premium user</span>
					<span class="valid">(valid thru: 2012-06-01)</span>
					<a href="#" title="Renew now">renew now</a>
				</div>*}
			</div>
			
			<div class="clearBoth"></div>
		<!-- content -->
		</div>
		<div class="profileLinks">
				{if $_userLoggedIn}
				{if $user->getId()!=$_user->getId() && !$isFriend}<a href="{url label=newConnect idUser=$user->getId()}" title="{'connect to friend'|t}" class="connectFriend">{'connect to friend'|t}</a>{/if}
			{if $user->getId()!=$_user->getId()}<a href="{url label=newMessage idUser=$user->getId()}" title="{'send message'|t}" class="sendMessage">{'send message'|t}</a>{/if}
			{if $user->getId()==$_user->getId()}<a href="{url label=editProfile}" title="{'edit my profile'|t}" class="edit">{'edit my profile'|t}</a>{/if}
			{if $user->getId()!=$_user->getId() && $isFriend}<a href="{url label=removeConnect idUser=$user->getId()}" title="{'remove from my friends'|t}" class="disconnectFriend">{'remove from my friends'|t}</a>{/if}
			{else}
			<a href="{url label=login}" title="{'connect to friend'|t}" class="connectFriend">{'connect to friend'|t}</a>
			<a href="{url label=login}" title="{'send message'|t}" class="sendMessage">{'send message'|t}</a>
			{/if}
			</div>
		</div>
		<div class="backgroundFrame970Bottom"></div>
		<br/>
		
		{permission permCheck=equipment isFriend=$isFriend permUser=$user}
		<div class="panelTabs">
			<div class="tabs">
				<a class="label" title="{'User equipment'|t}">{'User equipment'|t}</a>
			</div>
		</div>
		<div class="backgroundFrame970Top"></div>
		<div class="backgroundFrame970">
			{if !$equipment}
				<div class="myEqItem">
					{'Your equipment list is empty'|t}
				</div>
			{/if}
			<div class="myEqItem hidden myEqItemHidden">
				{'Your equipment list is empty'|t}
			</div>
			{foreach from=$equipment item=eq}
				{assign var=categoryParent value= $eq->category->getParentCategoryObj()}
				{assign var=categoryKey value=$categoryParent->getSlug()}
				{assign var=subCategoryKey value=$eq->category->getSlug()}
				{assign var=productKey value=$eq->product->getSlug()}
				<div class="myEqItem">
					<p class="group">product group: <a href="{url label=mainCategoryView categoryKey=$categoryKey subCategoryKey=$subCategoryKey}" title="{$eq->categoryDescription->getName()}">{$eq->categoryDescription->getName()}</a></p>
					<div class="thumb"><a href="{url label="productView" categoryKey=$categoryKey subCategoryKey=$subCategoryKey productKey=$productKey }" title=""><img src="{$urlStatic}/{image src=$eq->product->getMainImage() h=70}" alt="{$eq->productDescription->getName()}"/></a></div>
					<h2><a href="{url label="productView" categoryKey=$categoryKey subCategoryKey=$subCategoryKey productKey=$productKey }" title="{$eq->productDescription->getName()}">{$eq->productDescription->getName()}</a></h2>
					{if $_userLoggedIn && ($user->getId() eq $_user->getId())}<a href="{url label=userRemoveFromMyEq idProduct=$eq->getIdProduct()}" title="" class="rmv remFromMyEq">remove from my equipement</a>{/if}
				</div>	
			{/foreach}

			<div class="clearBoth"></div>
		</div>
		<div class="backgroundFrame970Bottom"></div>
		{/permission}
		<br/>
		
		{permission permCheck=playerProfile isFriend=$isFriend permUser=$user}
		<div class="panel310">
			<div class="panelTabs">
				<div class="tabs">
					<a class="label" title="{'Player profile'|t}">{'Player profile'|t}</a>
				</div>
			</div>
			<div class="backgroundFrame310Top"></div>
			<div class="backgroundFrame310"><div class="playerProfileContent">
				<table cellpadding="0" cellspacing="0" align="center" class="panelProfle" width="280" border="0">
					<tr><td class="label">Racquet</td><td>{if is_object($raquet)}{assign var=categoryParent value= $raquet->category->getParentCategoryObj()}
				{assign var=categoryKey value=$categoryParent->getSlug()}
				{assign var=subCategoryKey value=$raquet->category->getSlug()}
				{assign var=productKey value=$raquet->product->getSlug()}<a href="{url label=productView categoryKey=$categoryKey subCategoryKey=$subCategoryKey productKey=$productKey }" title="{$eq->productDescription->getName()}">{$eq->productDescription->getName()}</a>{else}{if $_userLoggedIn && $user->getId()==$_user->getId()}<a href="{url label=mainCategoryView categoryKey='racquets' subCategoryKey='tour'}" title="" class="edit">{'add racquet'|t}</a>{else}<span class="novalue">{'n/a'|t}</span>{/if}{/if}</td></tr>
					<tr><td class="label">String</td><td></td></tr>
					<tr><td class="label">Grip size</td><td>{if $user->userExtendedProfile->getGripSize()}{$user->userExtendedProfile->getGripSize()}{else}{if $_userLoggedIn && $user->getId()==$_user->getId()}<a href="{url label=editProfile}" title="" class="edit">{'fill the profile'|t}</a>{else}<span class="novalue">{'n/a'|t}</span>{/if}{/if}</td></tr>
					<tr><td class="label">Shoe size</td><td>{if $user->userExtendedProfile->getShoeSize()}{$user->userExtendedProfile->getShoeSize()}{else}{if $_userLoggedIn && $user->getId()==$_user->getId()}<a href="{url label=editProfile}" title="" class="edit">{'fill the profile'|t}</a>{else}<span class="novalue">{'n/a'|t}</span>{/if}{/if}</td></tr>
					<tr><td class="label">Apparel size</td><td>{if $user->userExtendedProfile->getApparelSize()}{$user->userExtendedProfile->getApparelSize()}{else}{if $_userLoggedIn && $user->getId()==$_user->getId()}<a href="{url label=editProfile}" title="" class="edit">{'fill the profile'|t}</a>{else}<span class="novalue">{'n/a'|t}</span>{/if}{/if}</td></tr>
				</table>
			</div></div>
			<div class="backgroundFrame310Bottom"></div>
		</div>
		{/permission}
		{permission permCheck=extendedPlayerProfile isFriend=$isFriend permUser=$user}
		<div class="panel640">
			<div class="panelTabs">
				<div class="tabs">
					<a class="label" title="{'Extended profile'|t}">{'Extended profile'|t}</a>
				</div>
			</div>
			<div class="backgroundFrame640Top"></div>
			<div class="backgroundFrame640"><div class="playerProfileContent">
				<table cellpadding="0" cellspacing="0" class="panelProfle panelProfileTabL" width="230" border="0">
					<tr><td class="label">{'Hand'|t}</td><td>{if $user->userExtendedProfile->getHand()==1}{'Left'|t}{/if}{if $user->userExtendedProfile->getHand()==2}{'Right'|t}{/if}{if !$user->userExtendedProfile->getHand()}{if $_userLoggedIn && $user->getId()==$_user->getId()}<a href="{url label=editProfile}" title="" class="edit">{'fill the profile'|t}</a>{else}<span class="novalue">{'n/a'|t}</span>{/if}{/if}</td></tr>
					<tr><td class="label">{'Forehand'|t}</td><td>{if $user->userExtendedProfile->getForehand()=='1'}{'1 handed'|t}{/if}{if $user->userExtendedProfile->getForehand()=='2'}{'2 handed'|t}{/if}{if !$user->userExtendedProfile->getForehand()}{if $_userLoggedIn && $user->getId()==$_user->getId()}<a href="{url label=editProfile}" title="" class="edit">{'fill the profile'|t}</a>{else}<span class="novalue">{'n/a'|t}</span>{/if}{/if}</td></tr>
					<tr><td class="label">{'Backhand'|t}</td><td>{if $user->userExtendedProfile->getBackhand()=='1'}{'1 handed'|t}{/if}{if $user->userExtendedProfile->getBackhand()=='2'}{'2 handed'|t}{/if}{if !$user->userExtendedProfile->getBackhand()}{if $_userLoggedIn && $user->getId()==$_user->getId()}<a href="{url label=editProfile}" title="" class="edit">{'fill the profile'|t}</a>{else}<span class="novalue">{'n/a'|t}</span>{/if}{/if}</td></tr>
				</table>
				
				<table cellpadding="0" cellspacing="0" class="panelProfle  panelProfileTabR" width="360" border="0">
					<tr><td class="label">{'Player Style'|t}</td><td>{if $user->userExtendedProfile->getPlayerStyle()=='1'}{'Net Attacker'|t}{/if}{if $user->userExtendedProfile->getPlayerStyle()=='2'}{'Aggresive Baseliner'|t}{/if}{if $user->userExtendedProfile->getPlayerStyle()=='3'}{'Defensive Baseliner'|t}{/if}{if $user->userExtendedProfile->getPlayerStyle()=='4'}{'Counter Pouncher'|t}{/if}{if $user->userExtendedProfile->getPlayerStyle()=='5'}{'All Court Player'|t}{/if}{if !$user->userExtendedProfile->getPlayerStyle()}{if $_userLoggedIn && $user->getId()==$_user->getId()}<a href="{url label=editProfile}" title="" class="edit">{'fill the profile'|t}</a>{else}<span class="novalue">{'n/a'|t}</span>{/if}{/if}</td></tr>
					<tr><td class="label">{'Prefered court surface'|t}</td><td>{if $user->userExtendedProfile->getPreferedCourtSurface()=='1'}{'Clay'|t}{/if}{if $user->userExtendedProfile->getPreferedCourtSurface()=='2'}{'Hard'|t}{/if}{if $user->userExtendedProfile->getPreferedCourtSurface()=='3'}{'Grass'|t}{/if}{if $user->userExtendedProfile->getPreferedCourtSurface()=='4'}{'Synthetic Grass'|t}{/if}{if $user->userExtendedProfile->getPreferedCourtSurface()=='5'}{'Carpet'|t}{/if}{if !$user->userExtendedProfile->getPreferedCourtSurface()}{if $_userLoggedIn && $user->getId()==$_user->getId()}<a href="{url label=editProfile}" title="" class="edit">{'fill the profile'|t}</a>{else}<span class="novalue">{'n/a'|t}</span>{/if}{/if}</td></tr>
				</table>
				
				<div class="clearBoth"></div>
				<br/>
				
				<table cellpadding="0" cellspacing="0" class="panelProfle panelProfileTabL" width="230" border="0">
					<tr><td class="label">{'Average 1st'|t}<br/>{'serve speed'|t}</td><td>{if $user->userExtendedProfile->getAverage1()}{$user->userExtendedProfile->getAverage1()}{else}{if $_userLoggedIn && $user->getId()==$_user->getId()}<a href="{url label=editProfile}" title="" class="edit">{'fill the profile'|t}</a>{else}<span class="novalue">{'n/a'|t}</span>{/if}{/if}</td></tr>
					<tr><td class="label">{'Average 2st'|t}<br/>{'serve speed'|t}</td><td>{if $user->userExtendedProfile->getAverage2()}{$user->userExtendedProfile->getAverage2()}{else}{if $_userLoggedIn && $user->getId()==$_user->getId()}<a href="{url label=editProfile}" title="" class="edit">{'fill the profile'|t}</a>{else}<span class="novalue">{'n/a'|t}</span>{/if}{/if}</td></tr>
				</table>
				
				<table cellpadding="0" cellspacing="0" class="panelProfle  panelProfileTabR" width="360" border="0">
					<tr><td class="label">{'Favourite tour player'|t}</td><td>{if $user->userExtendedProfile->getTopPlayer()}{$user->userExtendedProfile->getTopPlayer()}{else}{if $_userLoggedIn && $user->getId()==$_user->getId()}<a href="{url label=editProfile}" title="" class="edit">{'fill the profile'|t}</a>{else}<span class="novalue">{'n/a'|t}</span>{/if}{/if}</td></tr>
					<tr><td class="label">{'Favourite tournament'|t}</td><td>{if $user->userExtendedProfile->getTournament()}{$user->userExtendedProfile->getTournament()}{else}{if $_userLoggedIn && $user->getId()==$_user->getId()}<a href="{url label=editProfile}" title="" class="edit">{'fill the profile'|t}</a>{else}<span class="novalue">{'n/a'|t}</span>{/if}{/if}</td></tr>
				</table>
				
				<div class="clearBoth"></div>
			</div></div>
			<div class="backgroundFrame640Bottom"></div>
		</div>
		{/permission}
		<div class="clearBoth"></div>
		
		
		<br/>
		{permission permCheck=galleries isFriend=$isFriend permUser=$user}
		<div class="panel310">
			<div class="panelTabs">
				<div class="tabs">
					<a class="label" title="{'Galleries'|t}">{'Galleries'|t}</a>
				</div>
			</div>
			<div class="backgroundFrame310Top"></div>
			<div class="backgroundFrame310">
				{foreach from=$userGalleries item=gallery}
				<div class="galleryItemInProfile">
					<a href="{url label=userGallery idGallery=$gallery->getId()}" title="{$gallery->getTitle()}"><img src="{$urlStatic}/{image src=$gallery->getThumbnail() w=90}" alt="{$gallery->getTitle()}" class="thumb"/></a>
					<p class="date">{$gallery->getDate()}</p>
					<h2><a href="{url label=userGallery idGallery=$gallery->getId()}" title="{$gallery->getTitle()}">{$gallery->getTitle()}</a></h2>
					<div class="links">
						<a href="{url label=userGallery idGallery=$gallery->getId()}" title="{'See gallery'|t}" class="photos">{$gallery->getNumPhotos()} {'photos'|t}</a>
						<a href="{url label=userGallery idGallery=$gallery->getId()}" title="{'See gallery'|t}" class="view">{'view'|t}</a>
					</div>
				</div>
				{foreachelse}
				<div class="galleryItemInProfile">
					{if $_userLoggedIn && ($user->getId() eq $_user->getId())}
					{'You have no galleries'|t}
					{else}
					{'List is empty'|t}
					{/if}
				</div>
				{/foreach}
				
				
				
			</div>
			<div class="backgroundFrame310Bottom"></div>
			<div class="bottomTab">
				{if $user->getPremium() eq 1}
				{if $_userLoggedIn && $user->getId()==$_user->getId() && count($userGalleries)==0}<a href="{url label=userAddGallery}" title="" class="edit">{'add gallery'|t}</a>{else}
				<a href="{url label=userGalleries idUser=$user->getId()}" title="{'view all galleries'|t}">{'view all galleries'|t}</a>{/if}
				{else}
				<a href="{url label=buyPremium}">{'Buy premium account'|t}</a>
				{/if}
			</div>
		</div>
		{/permission}
		{permission permCheck=videos isFriend=$isFriend permUser=$user}
		<div class="panel310">
			<div class="panelTabs">
				<div class="tabs">
					<a class="label" title="{'Videos'|t}">{'Videos'|t}</a>
				</div>
			</div>
			<div class="backgroundFrame310Top"></div>
			<div class="backgroundFrame310">
				{foreach from=$userVideos item=video}
				<div class="galleryItemInProfile">
					
					<a href="{url label=userVideo idGallery=$video->getId()}" title="{$video->getTitle()}"><img src="{$video->getThumbnail()}" alt="Gallery title" class="thumb"/></a>
					<p class="date">{$video->getDate()}</p>
					<h2><a href="{url label=userVideo idGallery=$video->getId()}" title="{$video->getTitle()}">{$video->getTitle()}</a></h2>
					<div class="links">
						<a href="{url label=userVideo idGallery=$video->getId()}" title="{$video->getTitle()}" class="play">{'view'|t}</a>
					</div>
				</div>
				{foreachelse}
				<div class="galleryItemInProfile">
					{if $_userLoggedIn && ($user->getId() eq $_user->getId())}
					{'You have no videos'|t}
					{else}
					{'List is empty'|t}
					{/if}
				</div>
				{/foreach}
				
			</div>
			<div class="backgroundFrame310Bottom"></div>
			<div class="bottomTab">
				{if $user->getPremium() eq 1}
				{if $_userLoggedIn && $user->getId()==$_user->getId() && count($userVideos)==0}<a href="{url label=userAddVideo}" title="" class="edit">{'add video'|t}</a>{else}
				<a href="{url label=userVideos idUser=$user->getId()}" title="{'view all videos'|t}">{'view all videos'|t}</a>{/if}
				{else}
				<a href="{url label=buyPremium}">{'Buy premium account'|t}</a>
				{/if}
			</div>
		</div>
		{/permission}
		{permission permCheck=userActivity isFriend=$isFriend permUser=$user}
		<div class="panel310 panel310Last">
			<div class="panelTabs">
				<div class="tabs">
					<a class="label" title="{'User activity'|t}">{'User activity'|t}</a>
				</div>
			</div>
			<div class="backgroundFrame310Top"></div>
			<div class="backgroundFrame310">
				{foreach from=$wall item=wallItem}
				<div class="userActivity">
					<p class="date">{$wallItem->getDate()}</p>
					<p>{$wallItem->getDescription(1)}</p>
				</div>
				{/foreach}
				
			</div>
			<div class="backgroundFrame310Bottom"></div>
		</div>
		<div class="clearBoth"></div>
		{/permission}
		
		
		<br/>
		
		
		<div class="panelTabs">
			<div class="tabs">
				<a class="label" title="{'Connections'|t}">{'Connections'|t} ({$user->GetConnectionsCount()})</a>
			</div>
		</div>
		<div class="backgroundFrame970Top"></div>
		<div class="backgroundFrame970"><div class="content">
				{foreach from=$connections item=connection}
			<div class="userItem">
				<a href="{url label=userProfile idUser=$connection->getId()}" title="{$connection->getFirstName()} {$connection->getLastName()}"><img src="{$urlStatic}/{image src=$connection->getAvatar() h=90}" alt="{$connection->getFirstName()} {$connection->getLastName()}" class="thumb"/></a>
				<p class="username"><a href="{url label=userProfile idUser=$connection->getId()}" title="{$connection->getFirstName()} {$connection->getLastName()}">{$connection->getFirstName()} {$connection->getLastName()}</a> <img src="{$urlStatic}/image/Strona/rank3.png" alt="rank"/><br/>{$connection->getLocation()}</p>							
			</div>
				{foreachelse}
				<div class="myEqItem">
					{if $_userLoggedIn && ($user->getId() eq $_user->getId())}
					{'You have no connections'|t}
					{else}
					{'List is empty'|t}
					{/if}
				</div>
				{/foreach}
			
						
			<div class="clearBoth"></div>		
		</div></div>
		<div class="backgroundFrame970Bottom"></div>
